package com.xiaomo.gitee.datamanager.mapper;
import java.util.List;

import com.xiaomo.gitee.datamanager.cache.MybatisRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.xiaomo.gitee.datamanager.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

@Mapper
@CacheNamespace(implementation = MybatisRedisCache.class,eviction = MybatisRedisCache.class)
public interface UserRoleMapper extends BaseMapper<UserRole> {

    UserRole selectByUserId(@Param("userId") Long userId);

    int deleteByUserId(@Param("userId") Long userId);

}




